/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package paquete;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author JuanJo
 */
public class flash extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

        String obj="<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='250' height='100' CODEBASE='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0'><PARAM NAME='MOVIE' VALUE='flash_animation.swf'><PARAM NAME='PLAY' VALUE='true'><PARAM NAME='LOOP' VALUE='true'><PARAM NAME='QUALITY' VALUE='high'><EMBED SRC='flash_animation.swf' Width='850' height='400' PLAY='true' LOOP='true' QUALITY='high' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash'></EMBED></OBJECT>";
        String centrar="<div align='center'>"+obj+"</div>";

        PrintWriter out = response.getWriter();

        out.println("<html>");
        out.println("<head>");
        out.println("<title>Servlet con Flash</title>");
        out.println("</head>");
        out.println("<body>");
        out.println("<h1>Servlet Flash at " + request.getContextPath () + "</h1>");
        out.println(centrar);
        //out.println("<img src=RCZ.jpg>");
        out.println("</body>");
        out.println("</html>");


        //out.println("JuanJo =)");
    }
}